package kotan.view.property;

import javax.swing.table.AbstractTableModel;

import kotan.model.EntityModel;


public class PropertyTableModel extends AbstractTableModel {

    private static final long serialVersionUID = 1L;
    private EntityModel entityModel;

    @Override
    public boolean isCellEditable(int rowIndex, int columnIndex) {
        if (columnIndex == 0) return false;
        if (rowIndex == 0) return false;
        return true;
    }

    @Override
    public int getColumnCount() {
        return 2;
    }

    @Override
    public int getRowCount() {
        if (entityModel == null) return 0;
        return 0;
//        return entityModel.getKind().propertiesSize();
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        if (columnIndex == 0) {
//            return entityModel.getKind().getPropertyName(columnIndex);
        } else {
//            return entityModel.getKind().getValue(entityModel, columnIndex);
        }
        return null;
    }

}
